<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>SetProfile Page</title>
</head>
<body>
	<f:view>
		<h:form id="setProfileForm">
	
		<h:outputText value="Change your password"></h:outputText>
			<h:panelGrid border="1" columns="3">
				<h:outputText value="Current Password" ></h:outputText>			
				<h:inputSecret id="passwordFailed"  required="true" 
				validator="#{setProfileController1.validatePassword}"></h:inputSecret>				
				<h:message for="passwordFailed"></h:message>
				
				<h:outputText value="New Password"></h:outputText>				
				<h:inputSecret id="passwordFailedNew" binding="#{passwordFailedNew}" required="true" >
					<f:validateLength minimum="4" maximum="20"></f:validateLength>
				</h:inputSecret>
				<h:message for="passwordFailedNew"></h:message>
				
				<h:outputText value="Confirm Password"></h:outputText>
				<h:inputSecret id="passwordFailedRetype"  validator="#{setProfileController1.validatePasswordNew}">
					<f:validateLength minimum="4" maximum="20"></f:validateLength>
					<f:attribute name="password" value="#{passwordFailedNew}"></f:attribute>
				</h:inputSecret>
				
				<h:message for="passwordFailedRetype"></h:message>
				
			</h:panelGrid>
			
			<h:commandButton id="submit" value="Submit" action="#{setProfileController1.changePassword}"></h:commandButton>
		
		</h:form>
		
		<br />
		<br />
		
		
	</f:view>



</body>
</html>